Belgelerim/ceng_491/implementation/doxygen/TraffEdu_Developers_Manual_Reference_ToSource/CommandCopy.cpp

Go to the documentation of this file.
00001 
00002 CommandCopy::CommandCopy(OSGWindows* osgwind)
00003 {
00004         osgwind_ = osgwind;     
00005         rightCLK = 0;
00006 }
00007 
00008 CommandCopy::CommandCopy(OSGWindows* osgwind, TraffEduObject* obj)
00009 
00010 {
00011         osgwind_ = osgwind;
00012         rightCLK = 1;
00013         obj_ = obj;
00014 }
00015 
00016 bool CommandCopy::execute()
00017 {
00018         osgwind_->clearCopiedObjects();
00019 
00020         if(rightCLK)
00021                 osgwind_->setCopiedObjects(obj_);
00022         else
00023                 osgwind_->setCopiedObjects();
00024 
00025         return true;
00026 }
00027 
00028 bool CommandCopy::unexecute()
00029 {       
00030         return true;
00031 }

Generated on Sun May 28 18:54:08 2006 for TraffEdu by  doxygen 1.4.6-NO